$(function(){
	$.ajax({
		type: "GET",
		url: "/photo/user-pic.do",
		dataType: "json",
		data: {"photoWriterId":sessionStorage.author},
		success: function(data) {
			$.each(data, function(i, n) {
				let a = $(`<a></a>`).appendTo($('#imgShow'));
				a.attr("href", "pic-details.html")
				.attr("data-title", n.photoPicTitle)
				.attr("data-writerId", n.photoWriterId)
				.attr("data-picClassId", n.photoPicClassId)
				// $(`<img></img>`).attr("src",
				// n.photoThumbnailPicPath)
				$(`<img></img>`).attr("src", "../img/_noimg.png")
				.css("width", "300px")
				.appendTo(a);
			});
		}
	});
});